       Stack segment stack
       DW 64 dup (?)
       Stack ends

       cr EQU 13
       lf EQU 10
       Data segment
           String_1  DB  'Numeric to string conversion$'
           String_2  DB  'The result is --> $'
           Str_num   DB 7 dup (' ')
           Number    DW  (?)
       Data ends

       Code segment
       Assume CS:Code , DS:Data
       ORG 100h
       Begin : MOV AX , Data
               MOV DS, AX
               MOV Number , 20
               MOV AH , 9h
               LEA DX , String_1
               INT 21h
               MOV AH , 2h
               MOV DL , cr
               INT 21h
               MOV DL , lf
               INT 21h
               MOV Str_num [6] , '$'
               MOV AX , Number
               MOV BX , 5
               MOV CL , 10

       Start : MOV DX , AX
               DIV CL
               MUL CL
               SUB DX , AX
               ADD DX , '0'
               MOV Str_num [BX] , DL
               DEC BX
               DIV CL
               CMP AX , 0
               JE Output
               JMP Start

       Output : MOV AH , 9h
                LEA DX , String_2
                INT 21h
                MOV AH , 9h
                LEA DX , Str_num
                INT 21h
                MOV AH , 4Ch
                INT 21h
       Code ends
       End Begin
